package com.jingzhongbao.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class LoginController {
	
	@RequestMapping(value = "/")
    public String index() {
        return "login";
    }
	@RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
        return "login";
    }
	@RequestMapping(value = "/login/{username}/{password}", method = RequestMethod.POST)
    public String login(@PathVariable("username") String username,
    		 @PathVariable("password") String password) {
        return "/user/list";
    }
}
